package com.polaris.live.widget.high_light.parameter

/**
 * Constraints
 *
 * @author Created by 半仙 on 2024/6/26/026 17:24
 */
sealed class Constraints {
    //vertical constraints
    object TopToTopOfHighlight : Constraints()
    object BottomToTopOfHighlight : Constraints()
    object BottomToBottomOfHighlight : Constraints()
    object TopToBottomOfHighlight : Constraints()

    //horizontal constraints
    object StartToStartOfHighlight : Constraints()
    object StartToEndOfHighlight : Constraints()
    object EndToEndOfHighlight : Constraints()
    object EndToStartOfHighlight : Constraints()

    //center constraints
    object CenterHorizontalOfHighlight : Constraints()
    object CenterVerticalOfHighlight : Constraints()

    operator fun plus(locationGravity: Constraints): List<Constraints> {
        return listOf(this, locationGravity)
    }
}
